package 一维数组模拟栈数据结构.test01;

public class Test01 {
    public static void main(String[] args) {
        Object[] o = new Object[100];
        MyStack myStack = new MyStack(o);
        myStack.push(new String[]{"1","2","3","4"});
        myStack.push(new String[]{"5","6","7","8"});
        myStack.push(new String[]{"9","10","11","12"});
        myStack.push(new String[20]);
        System.out.println(myStack.elements[15]);
        System.out.println("============================");
        System.out.println(myStack.index);
        myStack.pop(99);
        System.out.println(myStack.elements[1]);
    }
}
